<template>
    <ul>
        <li>news001 <input type="text"></li>
        <li>news002 <input type="text"></li>
        <li>news003 <input type="text"></li>
    </ul>   
</template>

<script>
    export default {
        name: 'NewsComponent',
        activated() {//keep-alive组件激活时调用
            console.log('NewsComponent activated')
        },
        deactivated() {
            console.log('NewsComponent deactivated')
        }
    }
</script>

<style>

</style>